﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;

namespace WorkBasket.Data.Entities
{
    [JsonObject()]
    public class Workflow
    {

        [Key]
        public int WorkflowID { get; set; }

        public int SLA { get; set; }

        public string WorkflowName { get; set; }
        public virtual int UnitID { get; set; }
 

         [JsonIgnore]
         public virtual ICollection<Field> Fields { get; set; }
         [JsonIgnore]
         public virtual ICollection<ProcessVersion> ProcessVersions { get; set; }
         [JsonIgnore]
         public virtual ICollection<Form> Forms { get; set; }
         [JsonIgnore]
         public virtual Unit Unit { get; set; }
      

    }
}
